package vip.source.pattern.part06.improve.service.impl;

import vip.source.pattern.part06.base.service.InnerOrderService;
import vip.source.pattern.part06.improve.service.OrderAdapterService;

public class InnerAdapterOrderServiceImpl implements OrderAdapterService {

    private InnerOrderService innerOrderService = new InnerOrderService();

    @Override
    public boolean isFirst(String uId) {
        return innerOrderService.queryUserOrderCount(uId) <= 1;
    }
}
